package org.demo.spring.aop.configuration;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(Application.class);

        MessageService messageService = (MessageService) applicationContext.getBean("messageService");
        messageService.getMessage();
    }
}
